package com.vcredit.creditcat.vo;

import java.io.Serializable;

public class CRFResult<T> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String code;// 错误码
	private String message;// 消息

	public CRFResult() {
	}

	public CRFResult(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public static <T> CRFResult<T> ErrorResponse(String errorMessage) {
		return new CRFResult<T>("400", errorMessage);
	}

	public static <T> CRFResult<T> SuccessResponse(String errorMessage) {
		return new CRFResult<T>("200", errorMessage);
	}
}
